
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>天气预报</title>
    <link rel="stylesheet" href="./天气预报.css">
</head>
<body>
    <div class="card">
        <div class="mycard">
            <h1 style="text-align: center;">天气预报</h1>       
        </div>
        <div class="search">
            <input type="text" placeholder="请输入城市名称" class="search-bar">
            <button onclick="showalert()">搜索</button>
        </div>
        <div class="weatherloading">
            <br>
            <div class="location">
                <h1 class="city">北京</h1>
            </div>
            <br>
            <div class="temperature">
                <h2 class="temperature-degree">26°C</h2>
                <div class="weather-description">晴</div>
                <div class="humidity">相对湿度：34%</div>
                <div class="wind">风速：20km/h</div>
            </div>
            <div>
                <a href="https://gitee.com/han-sunian/">仓库</a>
            </div>
        </div>
    </div>
    <script src="./天气预报.js" ></script>
</body>
</html>